#ifndef socket_buffer_h
#define socket_buffer_h

#include <stdlib.h>

#define SOCKET_BUFFER_MEMORY 0
#define SOCKET_BUFFER_OBJECT 1
#define SOCKET_BUFFER_RAWPOINTER 2

struct socket_sendbuffer {
	int id; //socketId
	int type; //内存块中数据的类型
	const void *buffer; //内存块地址
	size_t sz; //内存块字节数
};

#endif
